{% extends "base.html" %}

{% block title %}个人信息{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    <h4 class="mb-0">个人信息</h4>
                </div>
                <div class="card-body">
                    <div class="row mb-3">
                        <div class="col-md-4 text-muted">用户名</div>
                        <div class="col-md-8">{{ current_user.username }}</div>
                    </div>
                    <div class="row mb-3">
                        <div class="col-md-4 text-muted">电子邮箱</div>
                        <div class="col-md-8">{{ current_user.email }}</div>
                    </div>
                    <div class="row mb-3">
                        <div class="col-md-4 text-muted">姓名</div>
                        <div class="col-md-8">{{ current_user.full_name }}</div>
                    </div>
                    <div class="row mb-3">
                        <div class="col-md-4 text-muted">联系电话</div>
                        <div class="col-md-8">{{ current_user.phone }}</div>
                    </div>
                    <div class="row mb-3">
                        <div class="col-md-4 text-muted">用户角色</div>
                        <div class="col-md-8">
                            {% if current_user.role == 'engineer' %}
                            测控工程师
                            {% elif current_user.role == 'manager' %}
                            项目管理人员
                            {% else %}
                            系统集成商
                            {% endif %}
                        </div>
                    </div>
                    <div class="row mb-3">
                        <div class="col-md-4 text-muted">所属部门</div>
                        <div class="col-md-8">{{ current_user.department }}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 